Feature: Added a flag to generate requirements.txt without markers#337
Feature: Added a flag to generate requirements.txt without markers#337sealonohana wants to merge 6 commits intopython-poetry:mainfrom
Conversation
|
Unfortunately, this is not possible in general. There will be surprises for sure. An unconditional list of packages will just work for a specific environment. There has already been a PR like this before: #82 Citing from #82 (comment):
In some cases a requirements.txt without markers may work. However, just providing an option that simply strips markers and will produce broken requirements.txt files for many people is something we will probably not approve. In order to create a requirements.txt without markers you have to evaluate markers for a target environment. |



The PR adds a
--without-markersflag to the poetry export command. It tells Poetry to leave out all environment markers from the generatedrequirements.txt.We ran into repeated issues where certain tools or build steps would choke on these markers—especially in CI environments that don’t process them correctly.
The goal here is simple: export a clean, unconditional list of packages that works everywhere, without surprises. It’s not a replacement for markers when they’re needed, but for cases where you explicitly don’t want them, this makes the export process a lot more reliable and predictable.